﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Survey.master" AutoEventWireup="false" CodeFile="AddSurvey.aspx.vb" Inherits="AddSurvey" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<fieldset>
<legend><label>Create Survey</label></legend>
<ul>
<li>
    <label for="Title">Survey Title:</label>
    <asp:TextBox ID="txtTitle" runat="server" Width="307px" 
        ToolTip="Enter Title of Survey"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
        ErrorMessage="Survey Title Required"></asp:RequiredFieldValidator>
</li>

<li>
    <label for="Question">Survey Question:</label>
    <asp:TextBox ID="txtQuestion" runat="server" Width="310px" 
        ToolTip="Enter Survey Question"></asp:TextBox>

    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
        ErrorMessage="Survey Question Required"></asp:RequiredFieldValidator>

</li>

<li>
    <label for="Category">Survey Category:</label>
    <asp:DropDownList ID="DDLCategory" runat="server" DataSourceID="DSCategory" 
        DataTextField="Type" DataValueField="ID" 
        ToolTip="Choose Category for Survey">
    </asp:DropDownList>
    <asp:SqlDataSource ID="DSCategory" runat="server" 
        ConnectionString="<%$ ConnectionStrings:myFirstDatabase %>" 
        ProviderName="<%$ ConnectionStrings:myFirstDatabase.ProviderName %>" 
        SelectCommand="SELECT * FROM [tblCategory]"></asp:SqlDataSource>
</li>

<li>
    <asp:Button ID="btnSurvey" runat="server" Text="Create Survey" />
</li>

</ul>
</fieldset>
</asp:Content>

